package com.bruce.demo1.principles.demo2.lsp.demo2;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 实际操作类
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/20 15:57
 */
public class RectangleResize {

    public static void resize(Rectangle rectangel) {
        while (rectangel.getLength() <= rectangel.getWidth()) {
            rectangel.setLength(rectangel.getLength() + 1);
        }
    }

    public static void printLengthAndWidth(Quadrilateral quadrilateral) {
        System.out.println(quadrilateral.getLength());
        System.out.println(quadrilateral.getWidth());
    }
}
